package com.qf.openapi.web.master.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;


/**
 * 该vo用于接收用户参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private Integer id;
    
    //@JsonProperty("username")
    private String username;
    
    private String password;
    
    private String sex;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birthday;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registTime;
    
    private MultipartFile headPortrait;
    
    private String capchar;
    
    private String auth;
    
    private String autoLogin;
}
